#{extends '/template/main.html' /}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">修改员工</h3>
        <div class="panel-options">
            <a href="#" data-toggle="panel">
                <span class="collapse-icon">&ndash;</span>
                <span class="expand-icon">+</span>
            </a>
        </div>
    </div>
    <div class="panel-body">

        <form method="POST" role="form" id="form" action="/admin/employee/update/${adminUser?.id}/${pageNumber}" class="form-horizontal validate">

        #{include 'manage/employee/EmployeeCtrl/form.html'/}

        </form>
        <div class="form-group-separator" style="border-top: solid 1px #eeeeee;margin-top: 15px;margin-bottom: 20px;"></div>

        <div class="form-group" style="padding-left: 0px;margin-left: 0px;">
            <label class="col-sm-2 control-label" for="field-5"></label>

            <div class="col-sm-10">
                <button type="submit" id="submit" class="btn btn-success">&nbsp;&nbsp;确定&nbsp;&nbsp;</button>
                <button type="reset" onclick="document.getElementById('form').reset()" class="btn btn-white">&nbsp;&nbsp;重置&nbsp;&nbsp;</button>
            </div>

        </div>
    </div>
</div>

<!-- Imported styles on this page -->
<link rel="stylesheet" href="/public/js/wysihtml5/src/bootstrap-wysihtml5.css">
<link rel="stylesheet" href="/public/js/uikit/vendor/codemirror/codemirror.css">
<link rel="stylesheet" href="/public/js/uikit/uikit.css">
<link rel="stylesheet" href="/public/js/uikit/css/addons/uikit.almost-flat.addons.min.css">
<script src="/public/js/wysihtml5/lib/js/wysihtml5-0.3.0.js"></script>
<!-- Imported scripts on this page -->
<script src="/public/js/wysihtml5/src/bootstrap-wysihtml5.js"></script>
<script src="/public/js/uikit/vendor/codemirror/codemirror.js"></script>
<script src="/public/js/uikit/vendor/marked.js"></script>
<script src="/public/js/uikit/js/uikit.min.js"></script>
<script src="/public/js/uikit/js/addons/htmleditor.min.js"></script>
<script src="/public/js/ckeditor/ckeditor.js"></script>
<script src="/public/js/ckeditor/adapters/jquery.js"></script>

<!-- Imported scripts on this page -->
<script src="/public/js/jquery-validate/jquery.validate.min.js"></script>
<script type="text/javascript" src="/public/lib/layer/js/layer.js"></script>

<script>

    $(function(){
        $(document).on("click", "#submit", function(){
            if($("#re-password").val() != $("#password").val()){
                layer.msg('确认密码必须和密码保持一致');
                $("#re-password").focus();
                return;
            }
            $("#form").submit();
        })
    })

</script>